package com.coos.util;

public class StringBufferTest {

	public static void main(String[] args) {

		StringBuffer s1 = new StringBuffer();
		s1.append("A");
		StringBuffer s2 = new StringBuffer();
		s2.append("B");

		swap(s1, s2);
		System.out.println(s1);
		System.out.println(s2);

	}

	public static void swap(StringBuffer sb1, StringBuffer sb2) {
		sb1.append(sb2);
		sb2 = sb1;
		System.out.println("sb2=" + sb2);

	}

}